<extend name="Public/base"/>

<block name="body">
    <div ng-app=''>
    <div class="main-title">
        <h2>定制{$n}价格</h2>
    </div>
<b>统一价格定制栏</b><br><br>
<input type="text" class="text input-large" ng-model="price" name="price[]" value="" placeholder="价格">
<input type="text" class="text input-large" ng-model="num" name="num[]" value="" placeholder="库存">
<br><br>
    <form action="{:U('Jg/add',array('id'=>$id))}" method="post" class="form-horizontal">
    	
        <foreach name="jl" item="pip" key='pp'>
        <div class="form-item">
            <label class="item-label">{$pip}<span class="check-tips">{$pp}</span></label>
            <div class="controls">
             <input type="hidden" class="text input-large" name="attrcid[]" value="{$pp}" >
                <input type="text" class="text input-large" name="price[]" value="{{price}}" placeholder="价格">
                <input type="text" class="text input-large" name="num[]" value="{{num}}" placeholder="库存">
            </div>
        </div>
        </foreach>
        <div class="form-item">
            <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</div>
</block>

<block name="script">
    <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
    <script type="text/javascript">
        
        //导航高亮
        highlight_subnav('{:U('Jg/index')}');

    </script>

</block>